#include "widget.h"
#include "server.h"

#include <QApplication>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    server::HttpServer* httpServer = server::HttpServer::getInstance();
    if(!httpServer->init())
    {
        LOG_ERROR << "HTTP 服务器启动失败!";
        return 1;
    }
    LOG_DEBUG << "HTTP 服务器启动成功!";

    Widget w;
    w.show();
    return a.exec();
}
